import { createRouter, createWebHistory } from 'vue-router'
import TextEdit from '../components/TextEdit.vue'
import AttractionsInfo from '../components/AttractionsInfoVue.vue'
import CityAdd from '../components/CityAddVue.vue'
import UserInfo from '../components/UserVue.vue'
import CommentManagementVue from '../components/CommentManagementVue.vue'
import FeedbackVue from '../components/FeedbackVue.vue'
import Announcement from '../components/AnnouncementManagementVue.vue'

const routes = [
    {
        path: '/TextEdit',
        name: 'TextEdit',
        component: TextEdit
    },
    {
        path: '/AttractionsInfo',
        name: 'AttractionsInfo',
        component: AttractionsInfo
    },
    {
        path: '/CityAdd',
        name: 'CityAdd',
        component: CityAdd
    },
    {
        path: '/UserInfo',
        name: 'UserInfo',
        component: UserInfo
    },
    {
        path: '/CommentManagementVue',
        name: 'CommentManagementVue',
        component: CommentManagementVue
    },
    {
        path: '/FeedbackVue',
        name: 'FeedbackVue',
        component: FeedbackVue
    },
    {
        path: '/Announcement',
        name: 'Announcement',
        component: Announcement
    }
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router
